package com.twb.system.entity.twbDataDic.dto;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;

import io.swagger.annotations.ApiModel;

 /** 
 * @ClassName SearchTwbDataDicDto 
 * @Description 数据字典【/system/twbDataDic/search 出参对象】
 
 * @author DSY
 * @date 2020-11-05 12:54:33
 */ 
@ApiModel(value="SearchTwbDataDicDto",description="数据字典【/system/twbDataDic/search 出参对象】")
public class SearchTwbDataDicDto extends TwbDataDicDto implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	/** 父ID */
	public String getPId() {
		if (StringUtils.isBlank(getParentId())) {
			return "";
		}
		return getParentId();
	}
	
	/** 字典名称名称 */
	public String getText() {
		return getDataName();
	}
}